package com.statistics.bean;

import javax.persistence.Column;

/**
 * @author MәӧωρaЯsε
 * @date 2017/7/20.
 */
public class Electricity {

    @Column(name = "room1_electricity")
    private String room1Electricity;
    @Column(name = "room2_electricity")
    private String room2Electricity;
    @Column(name = "room3_electricity")
    private String room3Electricity;
    @Column(name = "room4_electricity")
    private String room4Electricity;
    @Column(name = "room5_electricity")
    private String room5Electricity;
    @Column(name = "room6_electricity")
    private String room6Electricity;
    @Column(name = "room7_electricity")
    private String room7Electricity;
    @Column(name = "room8_electricity")
    private String room8Electricity;

    public String getRoom1Electricity() {
        return room1Electricity;
    }

    public void setRoom1Electricity(String room1Electricity) {
        this.room1Electricity = room1Electricity;
    }

    public String getRoom2Electricity() {
        return room2Electricity;
    }

    public void setRoom2Electricity(String room2Electricity) {
        this.room2Electricity = room2Electricity;
    }

    public String getRoom3Electricity() {
        return room3Electricity;
    }

    public void setRoom3Electricity(String room3Electricity) {
        this.room3Electricity = room3Electricity;
    }

    public String getRoom4Electricity() {
        return room4Electricity;
    }

    public void setRoom4Electricity(String room4Electricity) {
        this.room4Electricity = room4Electricity;
    }

    public String getRoom5Electricity() {
        return room5Electricity;
    }

    public void setRoom5Electricity(String room5Electricity) {
        this.room5Electricity = room5Electricity;
    }

    public String getRoom6Electricity() {
        return room6Electricity;
    }

    public void setRoom6Electricity(String room6Electricity) {
        this.room6Electricity = room6Electricity;
    }

    public String getRoom7Electricity() {
        return room7Electricity;
    }

    public void setRoom7Electricity(String room7Electricity) {
        this.room7Electricity = room7Electricity;
    }

    public String getRoom8Electricity() {
        return room8Electricity;
    }

    public void setRoom8Electricity(String room8Electricity) {
        this.room8Electricity = room8Electricity;
    }

    public String getRoomElectricity(int roomNum){
        switch (roomNum){
            case 1:
                return getRoom1Electricity();
            case 2:
                return getRoom2Electricity();
            case 3:
                return getRoom3Electricity();
            case 4:
                return getRoom4Electricity();
            case 5:
                return getRoom5Electricity();
            case 6:
                return getRoom6Electricity();
            case 7:
                return getRoom7Electricity();
            case 8:
                return getRoom8Electricity();
        }
        return null;
    }
}
